﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ImmovablesManager
{
    public class DataGridPlotsDataView : INotifyPropertyChanged
    {

        private Guid _plotId;
        public Guid PlotId
        {
            get { return _plotId; }
            set
            {
                _plotId = value;
                NotifyPropertyChanged("PlotId");
            }
        }

        private string _plotRegion;
        public string PlotRegion
        {
            get { return _plotRegion; }
            set
            {
                _plotRegion = value;
                NotifyPropertyChanged("PlotRegion");
            }
        }

        private string _plotAddress;
        public string PlotAddress
        {
            get { return _plotAddress; }
            set
            {
                _plotAddress = value;
                NotifyPropertyChanged("PlotAddress");
            }
        }

        private string _plotContractNumber;
        public string PlotContractNumber
        {
            get { return _plotContractNumber; }
            set
            {
                _plotContractNumber = value;
                NotifyPropertyChanged("PlotContractNumber");
            }
        }


        private double? _totalArea;
        public double? TotalArea
        {
            get { return _totalArea; }
            set
            {
                _totalArea = value;
                NotifyPropertyChanged("TotalArea");
            }
        }

        private string _generalInformation;
        public string GeneralInformation
        {
            get { return _generalInformation; }
            set
            {
                _generalInformation = value;
                NotifyPropertyChanged("GeneralInformation");
            }
        }

        private double? _totalCost;
        public double? TotalCost
        {
            get { return _totalCost; }
            set
            {
                _totalCost = value;
                NotifyPropertyChanged("TotalCost");
            }
        }

        private string _realtorPhone;
        public string RealtorPhone
        {
            get { return _realtorPhone; }
            set
            {
                _realtorPhone = value;
                NotifyPropertyChanged("RealtorPhone");
            }
        }

        private int? _cardNumber;
        public int? CardNumber
        {
            get { return _cardNumber; }
            set
            {
                _cardNumber = value;
                NotifyPropertyChanged("CardNumber");
            }
        }

        private string _ownerPhone;
        public string OwnerPhone
        {
            get { return _ownerPhone; }
            set
            {
                _ownerPhone = value;
                NotifyPropertyChanged("OwnerPhone");
            }
        }

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #region Implementation of INotifyPropertyChanged

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}
